home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Megahits 5
/
Megahits 5 (1994)(GTI - Rhein-Main-Soft)(DE)(Disc 2 of 2)[!].iso
/
archive
/
print
/
2print2.lha
/
2print2.README
< prev
next >
Wrap
Text File
|
1994-05-31
|
8KB
|
232 lines
2Print is a simple little utility for HP Laserjets and other
printers that support the HP-PCL language. It's only goal in life is to
print either
- 1 166 chars x 66 line page or
- 2 80 x 66 line pages per sheet.
Yes I know that there are other such products in Amigaland and they
have GUIs, bells & whistles, etc. and they support every printer under the
sun *BUT* they are slow because they have to go through the printer.device
whereas 2print's output has to be redirected to file or PAR: for printing.
By accessing the printer directly, the speed increase is incredible
because all you are transferring is the ASCII text (haven't tested with
non-American English text because I am an ignorant American who wouldn't
know what to do with an umlat if it hit me in the head ;-) ).
The major reason I wrote this puppy was because I like to nest my
code and attach comments where necessary...usually at the end of the line.
While indented nesting is great coding practice (not to mention a
neat little bug-swatter), it does produce lines that are more than 80 chars
in length and I *HATE* reading line-wrapped code. I want to see it all (or
as much as I can) as a single line/object...no split variables for
me...I've got enough bugs already.
The other reason for it's birth is that I've become an
etext-junkie. Nothing like FTP'ing a good classic or two...and printing
them out wastes a LOT of paper. By printing 2 pages per sheet, I can halve
my printing costs *AND* reduce the weight.
By printing half the pages and then flipping the pages over, I
reduce my paper costs by 75%....the weight goes down accordingly too.
v2.0 is a feature-added release.
Written by Raj Goel
frostbit@dorsai.dorsai.org
BBS: (718) 805-8868
VOICE 718-849-0944
(C) Copyright 1994, FrostByte Consultants, NYC
Suggested fee: $ 10.00 in US or LOCAL currencies
Mail to: 87-90 118 Street, Richmond Hill NY 11418
========== VERSION 2.0 DOCUMENTATION =============
USAGE: 2PRINT <textfile> [START_PAGE/N] [END_PAGE/N] [Width=0,1]
[Midbar=0,1] [Top/N] [Lines/N] [Footer=0,1,2]
NEW FEATURES:
New EMAIL Address
TOP Offset 0-70 for 66 Line pages
0-200 for 60 line pages
LINES # of lines per page
FOOTER 0 None
1 File name, Page Number
2 File name, Page Number, TOP Offset, LINES per page
BUILT-IN DOCUMENTATION / HELP
IT'S SHAREWARE NOW
Example: 2print -h
- HELP File
2print s:foo >par:
- prints file s:foo to the PARallel port
2print s:foo w=1 m=0 >par:
- prints file s:foo to the PARallel port as a 160 column wide page
without a bar down the middle of the page
EXCELLENT for printing out source code that's over 80 column wide!
2print s:foo >ram:myfile:
- prints file s:foo to a file called ram:myfile
2print s:foo l=60 t=80 O=0 >par:
- prints file s:foo to the PARallel port
Each page has 60 lines, the FOOTER is NOT printed
The Page is offset 80 DOTS to enable hole punching
t=0 is Standard.
t=80 l=66 allows hole punching at 66 lines
t=200 l=60 gives a 1.5+ inch TOP margin with 60 lines per page
O=0 disables footer.
O=1 prints filename & page number.
O=2 prints filename, page number, TOP offset & LINES. Useful for experimentation
========== VERSION 1.0 DOCUMENTATION =============
2Print 1.0 by Rajesh Goel
(C) Copyright FrostByte Consultants, NYC, 1993
USAGE
=====
2print FILE S=# E=# W=# M=# >output
FILE Name of textfile to print
S=<starting Page> Start printing from which page
E=<ending page> End "" at "" "
W=<width> 1 or 2...
1 = 166 columns x 66 lines
2 = 80 "" x 66 ""
M=<Middle Bar> 0, >0
0 = don't print line in middle of page
1 = print line in middle of page
output par: prints to parallel port
OUTFILE prints to a text file
EXAMPLES
========
2print s:Startup-sequence >par:
will print s:startup-sequence to parallel port
starting at page 1, ending at the last page
2 pages per sheet
middle bar printed to seperate the pages
looks something like this:
+----------+----------+
| | |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| xxxxxxxx | xxxxxxxx |
| | |
+----------+----------+
filename...page #
2print MyBuggyCode.c w=1 m=0 >par:
prints MyBuggyCode.c to the Parallel port
1 wide page per sheet
NO Separator bar/line
looks something like this:
+---------------------+
| |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| xxxxxxxxxxxxxxxxxxx |
| |
+---------------------+
filename...page #
2print Hamlet.txt s=1 e=5 >Hamlet1-5
prints the FIRST 10 PAGES of Hamlet to a file called
Hamlet1-5
Note that the default settings are 2 PAGES PER SHEET
therefore, we have just written the first 660 LINES
(66 Lines/page x 2 pages/sheet x 5 sheets) to the
output file.
2print ABigTextFile.tct s=1 E=1 >foo
prints the FIRST 2 PAGES (or 1 SHEET) from ABigTextFile.txt
to a file called foo.
Here's what I generally do when I want to (ab)use the University's
Laser Printer to printout important stuff like the JargonFile or Dracula:
At home, I create several output files. Each holds 10 sheets or
so...that's just so that the sysadmins or other lan-nazi's don't flame me
for abusing the FREE USER accounts...i.e.
2print Jargonfile >foo
; this will tell me how many sheets will be printed
delete foo ; don't need that file anymore
2print Jargonfile S=1 E=10 >j1
2print Jargonfile S=11 E=20 >j2
2print Jargonfile S=21 E=30 >j3
2print Jargonfile S=31 E=40 >j4
2print Jargonfile S=41 E=50 >j5
2print Jargonfile S=51 E=60 >j6
copy j* pc0: ; stick them on a PC floppy for school
at school,
copy j1 lpt1:
sometime later
copy j2 lpt1:
.
.
.
ERRATA
======
Send all bugs, flames, cash, blondes, beer, postcards, etc. to:
Raj Goel
87-90 118 Street <= SNAIL mail
Richmond Hill, NY 11418
Oh yeah, pass it around, it's free...almost. You use it, you gotta
send me something...
something == [ Email | Postcards | Bugs | Wishlists | Whatever | Money ]
Fred Fish and others of his ilk (Walnut Creek CDROM, etc) are
EXPRESSLY AUTHORIZED to spread this stuff all over the galaxy. Go ahead,
make me famous.